<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>jQ设置</title>
	<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
	<script>
		$(document).ready(function () {
			$("#btn1").click(function () {
				$("#test1").text("Hello World!");

			});
			$("#btn2").click(function () {
				$("#test2").html("<br>Hello World!</br>");


			});
			$("#btn2").click(function () {
				$("#test3").val("Dolly Duck");


			})


		})
	</script>
</head>
<body>
<p id="test1">这是段落.</p>
<p id="test2">这是另一个段落</p>
<p>Input field:<input type="text" id="test3" value="Mickey Mouse"></p>
<button id="btn1">设置文本</button>
<button id="btn2">设置</button>
<button id="btn3">设置值</button>

</body>
</html>